package com.gtja.beoms.controller;

import com.gtja.beoms.anno.TimeAnnotation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 测试时间的controller
 * @author Ghao
 * @date 2022/1/5
 */

@RestController
@RequestMapping("time")
public class TimeController {

    @GetMapping("testTimeAnnotation")
    @TimeAnnotation
    public void testTimeAnnotation(){
        String x = null;
        for (int i = 0; i < 100; i++) {
            x = x + i;
        }
    }
}
